const {
	db,
	dbCmd,
	result_success,
	result_error,
	bluetoothCollection
} = require('../../common/constants')
module.exports = async function(params = {}) {
	let _id = params._id
	if (!_id) {
		return result_error('_id为空')
	}
	delete params._id
	await bluetoothCollection.doc(_id).update(params)
	return result_success()
}